package nx.behaviors;
import nx.behaviors.NxBehavior;
import nx.utils.Vector2D;
public class NxMSNoise extends NxBehavior {
    
    public NxMSNoise(String name) {
        super(name);
    }

    public Vector2D value() {
        
        float mag = (float)Math.abs(Math.random());
        float angle =(float)(Math.random()*2*Math.PI);

        if(enabled)
            return new Vector2D(mag,angle,Vector2D.MODE_MA);
        else
            return new Vector2D();
    }
}
